package cz.idsv.web.mvc.model.dao;

import java.util.Collection;

import org.springframework.dao.DataAccessException;

import cz.idsv.web.mvc.model.entity.PersonTypeEntity;



/**
 * Address DAO interface.
 * 
 * @author Jan Borzensky 
 */
public interface PersonTypeDao {

    /**
     * Find PersonType.
     */
    public Collection<PersonTypeEntity> findPersonType();
    
    /**
     * Saves address.
     */
    public void save(PersonTypeEntity personTypeEntity);
    
    /**
     * Delete address.
     */
    public void delete(PersonTypeEntity personTypeEntity);
    
    /**
     * Find PersonType by id.
     */
    public PersonTypeEntity findPersonTypeById(Integer id) throws DataAccessException;
    /**
     * Find personType by role.
     */
    public Collection<PersonTypeEntity> findPersonTypeByRole(String role) throws DataAccessException;
   
}

